home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / checkforpause.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  481 b   |  24 lines

  1. #include "bbs.h"
  2.  
  3. int CheckForPause(void)
  4. {
  5.  int stat;
  6.  
  7.  if(gnsflag!=1)  LineCount++;
  8.  if(gnsflag!=1&&(LineCount>=(User.LineLength?User.LineLength:22))) {
  9.      LineCount=0;
  10.         AEPutStr("(Pause)...More(y/n/ns)? ");
  11.      stat=LineInput("",GSTR1,3,KEYBOARD_TIMEOUT);
  12.  
  13.         if(stat<0)  return(stat);
  14.      if((GSTR1[0]=='N')||(GSTR1[0]=='n')) {
  15.          if((GSTR1[1]=='S')||(GSTR1[1]=='s'))  gnsflag=1;
  16.          else            return(FAILURE);
  17.         }
  18.      //if(AnsiColor)
  19.   AEPutStr("A");
  20.     }
  21.  return(SUCCESS);
  22. }
  23.  
  24.